package edu.sctu.zcy.month201505.day20150517;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by user24 on 2015/5/17.
 */
public class TeaCher implements Comparable<TeaCher>{
/*
创建一个TeaCher类，该类有老师编号，老师姓名，老师职称，老师性别，老师所授课程，老师所教学生
*/
    private String number;
    private String name;
    private String technicalTitle;
    private String sex;
    private String course;
    List<Student> studentslist = new ArrayList<>();



    public TeaCher(String number,String name,String technicalTitle,String course,String sex,
                   List<Student> studentslist){

        this.number = number;
        this.name = name;
        this.technicalTitle = technicalTitle;
        this.sex = sex;
        this.course = course;
        this.studentslist = studentslist;

    }

    public String getNumber(){
        return number;
    }

    public String getName(){
        return name;
    }

    public String getTechnicalTitle(){
        return technicalTitle;
    }

    public String getCourse() {
        return course;
    }

    public  List<Student> getStudents() {
        return studentslist;
    }

    public String getSex() {
        return sex;
    }

    @Override
    public int compareTo(TeaCher o) {
        return this.number.compareTo(o.number);
    }
}
